package com.cr.admin.business.banner.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class BannerAddParam {

    //专题标题
    @NotEmpty(message = "横幅描述不能为空")
    @ApiModelProperty(value = "横幅描述", required = true)
    String description;
    //专题图片
    @NotEmpty(message = "横幅图片不能为空")
    @ApiModelProperty(value = "横幅图片", required = true)
    String image;
    //专题排序
    @NotNull(message = "横幅排序不能为空")
    @ApiModelProperty(value = "横幅排序", required = true)
    Integer sort;

}
